package com.linkvin.ec.hcs.dao.model.mdm;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 分销商（二级）
 * </p>
 *
 * @author qichao
 * @since 2017-12-27
 */
@TableName("mdm_retailor")
public class Retailor extends Model<Retailor> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 关联的机构ID（一网）
     */
	@TableField("related_org_id")
	private Integer relatedOrgId;
    /**
     * 备注
     */
	private String comment;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 更新时间
     */
	@TableField("gmt_update")
	private Date gmtUpdate;
    /**
     * 门店编码
     */
	@TableField("shop_code")
	private String shopCode;
    /**
     * 门店全名
     */
	@TableField("full_name")
	private String fullName;
    /**
     * 门店简称
     */
	@TableField("short_name")
	private String shortName;
    /**
     * 所属片区ID
     */
	@TableField("region_id")
	private Integer regionId;
    /**
     * 门店具体地址(文本)
     */
	@TableField("shop_addr_text")
	private String shopAddrText;
    /**
     * 门店坐标(纬度)
     */
	@TableField("shop_addr_x")
	private String shopAddrX;
    /**
     * 门店地址(经度)
     */
	@TableField("shop_addr_y")
	private String shopAddrY;
    /**
     * 门店类型ID（3s、4s）
     */
	@TableField("shop_type")
	private Integer shopType;
    /**
     * 关联的一网门店id
     */
	@TableField("related_shop_id")
	private Integer relatedShopId;
    /**
     * 如果tagid一样，则表示同属于一个二网组织（预留字端）
     */
	@TableField("tag_id")
	private Integer tagId;
    /**
     * 所属经营区域文本描述
     */
	@TableField("region_text")
	private String regionText;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getRelatedOrgId() {
		return relatedOrgId;
	}

	public void setRelatedOrgId(Integer relatedOrgId) {
		this.relatedOrgId = relatedOrgId;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtUpdate() {
		return gmtUpdate;
	}

	public void setGmtUpdate(Date gmtUpdate) {
		this.gmtUpdate = gmtUpdate;
	}

	public String getShopCode() {
		return shopCode;
	}

	public void setShopCode(String shopCode) {
		this.shopCode = shopCode;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public Integer getRegionId() {
		return regionId;
	}

	public void setRegionId(Integer regionId) {
		this.regionId = regionId;
	}

	public String getShopAddrText() {
		return shopAddrText;
	}

	public void setShopAddrText(String shopAddrText) {
		this.shopAddrText = shopAddrText;
	}

	public String getShopAddrX() {
		return shopAddrX;
	}

	public void setShopAddrX(String shopAddrX) {
		this.shopAddrX = shopAddrX;
	}

	public String getShopAddrY() {
		return shopAddrY;
	}

	public void setShopAddrY(String shopAddrY) {
		this.shopAddrY = shopAddrY;
	}

	public Integer getShopType() {
		return shopType;
	}

	public void setShopType(Integer shopType) {
		this.shopType = shopType;
	}

	public Integer getRelatedShopId() {
		return relatedShopId;
	}

	public void setRelatedShopId(Integer relatedShopId) {
		this.relatedShopId = relatedShopId;
	}

	public Integer getTagId() {
		return tagId;
	}

	public void setTagId(Integer tagId) {
		this.tagId = tagId;
	}

	public String getRegionText() {
		return regionText;
	}

	public void setRegionText(String regionText) {
		this.regionText = regionText;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Retailor{" +
			", id=" + id +
			", relatedOrgId=" + relatedOrgId +
			", comment=" + comment +
			", gmtCreate=" + gmtCreate +
			", gmtUpdate=" + gmtUpdate +
			", shopCode=" + shopCode +
			", fullName=" + fullName +
			", shortName=" + shortName +
			", regionId=" + regionId +
			", shopAddrText=" + shopAddrText +
			", shopAddrX=" + shopAddrX +
			", shopAddrY=" + shopAddrY +
			", shopType=" + shopType +
			", relatedShopId=" + relatedShopId +
			", tagId=" + tagId +
			", regionText=" + regionText +
			"}";
	}
}
